Optimal. Leaf size=104 \[ -\frac {e^{-\frac {A}{B}} \text {Ei}\left (\frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{B}\right )}{B^2 (b c-a d) e g^2}+\frac {c+d x}{B (b c-a d) g^2 (a+b x) \left (A+B \log \left (\frac {e (c+d x)}{a+b x}\right )\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 104, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2552, 2334,
2336, 2209} \begin {gather*} \frac {c+d x}{B g^2 (a+b x) (b c-a d) \left (B \log \left (\frac {e (c+d x)}{a+b x}\right )+A\right )}-\frac {e^{-\frac {A}{B}} \text {Ei}\left (\frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{B}\right )}{B^2 e g^2 (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2209
Rule 2334
Rule 2336
Rule 2552
Rubi steps
\begin {align*} \int \frac {1}{(a g+b g x)^2 \left (A+B \log \left (\frac {e (c+d x)}{a+b x}\right )\right )^2} \, dx &=\int \frac {1}{(a g+b g x)^2 \left (A+B \log \left (\frac {e (c+d x)}{a+b x}\right )\right )^2} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 88, normalized size = 0.85 \begin {gather*} \frac {\frac {e^{-\frac {A}{B}} \text {Ei}\left (\frac {A}{B}+\log \left (\frac {e (c+d x)}{a+b x}\right )\right )}{e}-\frac {B (c+d x)}{(a+b x) \left (A+B \log \left (\frac {e (c+d x)}{a+b x}\right )\right )}}{B^2 (-b c+a d) g^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.72, size = 138, normalized size = 1.33
method | result | size |
risch | \(-\frac {d x +c}{\left (a d -c b \right ) B \left (b x +a \right ) g^{2} \left (A +B \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right )\right )}-\frac {{\mathrm e}^{-\frac {A}{B}} \expIntegral \left (1, -\ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )-\frac {A}{B}\right )}{g^{2} B^{2} e \left (a d -c b \right )}\) | \(121\) |
derivativedivides | \(\frac {-\frac {\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}}{\ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )+\frac {A}{B}}-{\mathrm e}^{-\frac {A}{B}} \expIntegral \left (1, -\ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )-\frac {A}{B}\right )}{e \left (a d -c b \right ) g^{2} B^{2}}\) | \(138\) |
default | \(\frac {-\frac {\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}}{\ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )+\frac {A}{B}}-{\mathrm e}^{-\frac {A}{B}} \expIntegral \left (1, -\ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )-\frac {A}{B}\right )}{e \left (a d -c b \right ) g^{2} B^{2}}\) | \(138\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 205, normalized size = 1.97 \begin {gather*} \frac {{\left (B d x + B c\right )} e^{\left (\frac {A}{B} + 1\right )} - {\left (A b x + A a + {\left (B b x + B a\right )} \log \left (\frac {{\left (d x + c\right )} e}{b x + a}\right )\right )} \operatorname {log\_integral}\left (\frac {{\left (d x + c\right )} e^{\left (\frac {A}{B} + 1\right )}}{b x + a}\right )}{{\left ({\left (B^{3} b^{2} c - B^{3} a b d\right )} g^{2} x + {\left (B^{3} a b c - B^{3} a^{2} d\right )} g^{2}\right )} e^{\left (\frac {A}{B} + 1\right )} \log \left (\frac {{\left (d x + c\right )} e}{b x + a}\right ) + {\left ({\left (A B^{2} b^{2} c - A B^{2} a b d\right )} g^{2} x + {\left (A B^{2} a b c - A B^{2} a^{2} d\right )} g^{2}\right )} e^{\left (\frac {A}{B} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {- c - d x}{A B a^{2} d g^{2} - A B a b c g^{2} + A B a b d g^{2} x - A B b^{2} c g^{2} x + \left (B^{2} a^{2} d g^{2} - B^{2} a b c g^{2} + B^{2} a b d g^{2} x - B^{2} b^{2} c g^{2} x\right ) \log {\left (\frac {e \left (c + d x\right )}{a + b x} \right )}} + \frac {\int \frac {1}{A a^{2} + 2 A a b x + A b^{2} x^{2} + B a^{2} \log {\left (\frac {c e}{a + b x} + \frac {d e x}{a + b x} \right )} + 2 B a b x \log {\left (\frac {c e}{a + b x} + \frac {d e x}{a + b x} \right )} + B b^{2} x^{2} \log {\left (\frac {c e}{a + b x} + \frac {d e x}{a + b x} \right )}}\, dx}{B g^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.46, size = 152, normalized size = 1.46 \begin {gather*} {\left (\frac {b c}{{\left (b c e - a d e\right )} {\left (b c - a d\right )}} - \frac {a d}{{\left (b c e - a d e\right )} {\left (b c - a d\right )}}\right )} {\left (\frac {d x e + c e}{{\left (B^{2} g^{2} \log \left (\frac {d x e + c e}{b x + a}\right ) + A B g^{2}\right )} {\left (b x + a\right )}} - \frac {{\rm Ei}\left (\frac {A}{B} + \log \left (\frac {d x e + c e}{b x + a}\right )\right ) e^{\left (-\frac {A}{B}\right )}}{B^{2} g^{2}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (a\,g+b\,g\,x\right )}^2\,{\left (A+B\,\ln \left (\frac {e\,\left (c+d\,x\right )}{a+b\,x}\right )\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________